import java.util.ArrayList;

/**
 * Creat with IntelliJ IDEA
 * Description
 * User: mamba24
 * Date: 2022-05-11
 * Time: 16:47
 * To BE A Better Person-2020-3-2
 */
public class TestDemo2 {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList=new ArrayList<>();
        ArrayList<Integer> arrayList1=new ArrayList<>();
        arrayList1.add(1);
        arrayList1.add(2);
        arrayList1.add(3);
        arrayList1.add(4);
        arrayList1.add(5);
        arrayList1.add(6);
        arrayList1.add(7);
        arrayList.add(1);
        arrayList.add(2);
        arrayList.add(3);
        arrayList.add(4);
        arrayList.add(5);
        arrayList.add(6);
        System.out.println(arrayList);
        System.out.println("=============");
        arrayList.add(3,99);
        System.out.println(arrayList);
        System.out.println("=============");
        arrayList.addAll(arrayList1);
        System.out.println(arrayList);;
        System.out.println("=============");
        System.out.println(arrayList.subList(1,5));
    }
}
